﻿using System;

namespace Dyao.Book.Contract.Serialization
{
    /// <summary>
    /// <see cref="DateTime"/>与json转换日期格式标记,日期格式："yyy-MM-dd"
    /// </summary>
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
    public class DateFormatAttribute : DatetimeFormatAttribute
    {
        public DateFormatAttribute() : base("yyy-MM-dd")
        {

        }

        public DateFormatAttribute(string format) : base(format)
        {

        }
    }
}
